<?php

namespace app\api\validate;

use think\Validate;

class Signup extends Validate
{
    protected $rule = [
        "rname" => "require",
        "tel" => "require|mobile",
        "sex" => "require",
        "age" => "require",
        "birth" => "require",
        "id_card" => "require|idCard",
        "content" => "require",
        "cate_id" => "require",
    ];

    protected $message = [
        'rname.require' => '请输入姓名',
        'tel.require' => '请输入手机号',
        'tel.mobile' => '手机号格式错误',
        'sex.require' => '请选择性别',
        'age.require' => '请输入年龄',
        'birth.require' => '请输入生日',
        'id_card.require' => '请输入身份证号码',
        'id_card.idCard' => '身份证号码格式错误',
        'content.require' => '请填写工作经历',
        'cate_id.require' => '请选择课程等级'
    ];

}